﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Account;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement;
using Volo.Abp.SettingManagement;
using Volo.Abp.VirtualFileSystem;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Http.Client.IdentityModel;
using Volo.Abp.Http.Client.IdentityModel.Web;
using Volo.Abp.Identity;
using Volo.Abp.TenantManagement;

namespace AliFox.BaseService;

[DependsOn(
        typeof(BaseServiceApplicationContractsModule),
        typeof(AbpHttpClientIdentityModelModule),
        typeof(AbpHttpClientIdentityModelWebModule)

)]
public class BaseServiceHttpApiClientModule : AbpModule
{
    public const string RemoteServiceName = "BaseService";

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddHttpClientProxies(
                typeof(BaseServiceApplicationContractsModule).Assembly,
                RemoteServiceName
            );
    }
}
